package com.home.java;

public class Employee {
    int id;
    String name;
    double salary;
    int age;
//（1）void printInfo()：可以打印员工的详细信息
//​（2）void setInfo(int  i, String n, double s, int a)
//    可以同时给id,name,salary,age赋值
    void printlnfo() {
        System.out.println("编号：" + id + ",姓名：" + name + "资薪：" + salary + ",年龄：" + age );}
        void setInfo(int i,String n, double s,int a){
            int id = 13;
            String name = "老张";
            double salary = 6000.0;
            int age = 33;


        }

    }

